package com.cgmnx.admin.dao.mapper;

import com.cgmnx.admin.dao.condition.NoteCondition;
import com.cgmnx.admin.dao.entity.NoteEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 笔记
 */
@Repository
public interface NoteMapper {

    void save(NoteEntity entity);

    List<NoteEntity> queryPage(NoteCondition condition);

    int count(NoteCondition condition);

    void update(NoteEntity entity);

    NoteEntity queryById(@Param("id") Integer id);

    void updateAudit(@Param("id") Integer id, @Param("newStatus") Integer newStatus, @Param("oldStatus") Integer oldStatus);
}